import { createApp } from 'vue'
import { createPinia } from 'pinia'

import pluginState from 'pinia-plugin-persistedstate'
import App from './App.vue'
import router from './router'

import AntD from 'ant-design-vue'
import Icons from '@/components/Icons'
import 'ant-design-vue/dist/antd.less'

import '@/permission'
const app = createApp(App)

app.use(Icons)
app.use(AntD) // 全局注册antD
app.use(createPinia().use(pluginState))
app.use(router)

app.mount('#app')
